package com.jshoperxms.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * Created by sdywcd on 2020/1/1.
 * Des:
 */
@Entity
@Table(name = "yd_record_impress_rd_t", schema = "jshoperxms", catalog = "")
public class YdRecordImpressRdT {
    private String id;
    private String recordid;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private int score;
    private String avatarurl;
    private String wxopenid;
    private String nick;
    private int iscalip;
    private String memberid;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "RECORDID", nullable = false, length = 25)
    public String getRecordid() {
        return recordid;
    }

    public void setRecordid(String recordid) {
        this.recordid = recordid;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "SCORE", nullable = false)
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Basic
    @Column(name = "AVATARURL", nullable = false, length = 500)
    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "NICK", nullable = false, length = 100)
    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    @Basic
    @Column(name = "ISCALIP", nullable = false)
    public int getIscalip() {
        return iscalip;
    }

    public void setIscalip(int iscalip) {
        this.iscalip = iscalip;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = true, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YdRecordImpressRdT that = (YdRecordImpressRdT) o;
        return createtime == that.createtime &&
                updatetime == that.updatetime &&
                versiont == that.versiont &&
                score == that.score &&
                iscalip == that.iscalip &&
                Objects.equals(id, that.id) &&
                Objects.equals(recordid, that.recordid) &&
                Objects.equals(status, that.status) &&
                Objects.equals(creatorid, that.creatorid) &&
                Objects.equals(avatarurl, that.avatarurl) &&
                Objects.equals(wxopenid, that.wxopenid) &&
                Objects.equals(nick, that.nick) &&
                Objects.equals(memberid, that.memberid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, recordid, status, createtime, creatorid, updatetime, versiont, score, avatarurl, wxopenid, nick, iscalip, memberid);
    }
}
